package com.liveinstars.api.im;

import com.onepiece.shipelves.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: zhouze
 * @date: 2020/2/28
 */
@FeignClient("im")
public interface ImDirectMemoryApi {

    @GetMapping("/getDirectMemory")
    Result<String> getDirectMemory();

    @GetMapping("/getSessionMap")
    Result<Map<String, String>> getSessionMap();

    @GetMapping("/getImUserTokenChatserverList")
    Result<List<String>> getImUserTokenChatserverList(@RequestParam("user_id") Long userId);

    @GetMapping("/getClockTimestamp")
    Result<HashMap<String,Long>> getClockTimestamp();
}
